package models

import (
	"time"

	"github.com/astaxie/beego/orm"
)

type User struct {
	Id    int
	Name  string
	Hours int
}

type RestRecord struct {
	Id         int
	UserId     int
	RestHours  int
	RecordType int
	RecordTime time.Time
	RestDate   string
	UserName   string
	RestType   string
}

func init() {
	// 需要在init中注册定义的model
	orm.RegisterModel(new(User), new(RestRecord))

}
